package com.ease.platform.authorization.util;

import com.ease.platform.authorization.vo.AuthorizationContext;

/**
 * 
 * @author nathanleewei
 * 
 */
public class AuthorizationContextThreadLocal {

	private static final ThreadLocal<AuthorizationContext> threadLocal = new ThreadLocal<AuthorizationContext>();

	public static AuthorizationContext getAuthorizationContext() {
		return threadLocal.get();
	}

	public static void setAuthorizationContext(AuthorizationContext authorizationContext) {
		threadLocal.set(authorizationContext);
	}

	public static void remove() {
		threadLocal.remove();
	}

}
